<?php

class ViewPort
{
	public $x;
	public $y;
	
	public $width;
	public $height;
	
	public function __construct($x = 0,$y = 0,$width = 1,$height = 1)
	{
		$this->x = $x;
		$this->y = $y;
		$this->width = $width;
		$this->height = $height;
	}
	
	public function getAspectRatio()
	{
		return $this->width / $this->height;
	}
}

?>